package com.ctgu.A1_3;

import java.util.List;

public class Department {
    private String name;
    private List<Subject> subjectList;//每一个系至少有一门课程
    private List<Instructor> instructorList;//每个系至少拥有一名教师
    private List<Student> studentList;//每个系至少拥有一名学生

    public Department() {
    }

    public Department(String name, List<Subject> subjectList, List<Instructor> instructorList, List<Student> studentList) {
        this.name = name;
        this.subjectList = subjectList;
        this.instructorList = instructorList;
        this.studentList = studentList;
    }

    @Override
    public String toString() {
        return "系{" +
                "系名='" + name + '\'' +
                ", 课程列表=" + subjectList +
                ", 导师名=" + instructorList +
                ", 学生名=" + studentList +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<Subject> getSubjectList() {
        return subjectList;
    }

    public void setSubjectList(List<Subject> subjectList) {
        this.subjectList = subjectList;
    }

    public List<Instructor> getInstructorList() {
        return instructorList;
    }

    public void setInstructorList(List<Instructor> instructorList) {
        this.instructorList = instructorList;
    }

    public List<Student> getStudentList() {
        return studentList;
    }

    public void setStudentList(List<Student> studentList) {
        this.studentList = studentList;
    }
}
